package com.cartrentalsystem.utils;

import java.time.LocalDate;

import java.time.temporal.TemporalAdjusters;

public class TimeUtils {

    public static LocalDate getFirstDayOfMonth(LocalDate today) {
        return today.with(TemporalAdjusters.firstDayOfMonth());
    }

    public static LocalDate getLastDayOfMonth(LocalDate today) {
        return today.with(TemporalAdjusters.lastDayOfMonth());
    }
}
